package com.hxzy.exception;

import com.hxzy.common.enums.AckCode;

/**
 * 所有验证、值不正确的异常
 */
public class ValidatorException extends RuntimeException{

    private AckCode ackCode;

    public AckCode getAckCode() {
        return ackCode;
    }

    public ValidatorException(AckCode ackCode){
        super(ackCode.getMsg());
        this.ackCode=ackCode;
    }

    public ValidatorException() {
    }

    public ValidatorException(String message) {
        super(message);
    }

    public ValidatorException(String message, Throwable cause) {
        super(message, cause);
    }
}
